package com.rohan.apps.mileagetracker.server.db.models;

import java.util.List;

import javax.persistence.Entity;


import com.googlecode.objectify.annotation.Unindexed;


@Entity
public class AppUser extends BaseDataStoreObject {
	private String FirstName;
	private String LastName;
	private String email;	
	private @Unindexed String Address;
	private @Unindexed String City;
	private @Unindexed String State;
	private @Unindexed String Zip;
	private @Unindexed String Phone;
	private @Unindexed List<Vehicle> Vehicles;
	//Login attributes
	private boolean loggedIn = false;
	private String loginUrl;
	private String logoutUrl;
	private String nickname;
	
	public AppUser(){
		//empty constructor
	}
	public AppUser(String email){
		this.email=email;			
	}
	
	
	public String getFirstName() {
		return FirstName;
	}
	public void setFirstName(String firstName) {
		FirstName = firstName;
	}
	public String getLastName() {
		return LastName;
	}
	public void setLastName(String lastName) {
		LastName = lastName;
	}
	public String getAddress() {
		return Address;
	}
	public void setAddress(String address) {
		Address = address;
	}
	public String getState() {
		return State;
	}
	public void setState(String state) {
		State = state;
	}
	public String getCity() {
		return City;
	}
	public void setCity(String city) {
		City = city;
	}
	public String getPhone() {
		return Phone;
	}
	public void setPhone(String phone) {
		Phone = phone;
	}
	public String getZip() {
		return Zip;
	}
	public void setZip(String zip) {
		Zip = zip;
	}
	public List<Vehicle> getVehicles() {
		return Vehicles;
	}
	public void setVehicles(List<Vehicle> vehicles) {
		Vehicles = vehicles;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public boolean isLoggedIn() {
		return loggedIn;
	}
	public void setLoggedIn(boolean loggedIn) {
		this.loggedIn = loggedIn;
	}
	public String getLoginUrl() {
		return loginUrl;
	}
	public void setLoginUrl(String loginUrl) {
		this.loginUrl = loginUrl;
	}
	public String getLogoutUrl() {
		return logoutUrl;
	}
	public void setLogoutUrl(String logoutUrl) {
		this.logoutUrl = logoutUrl;
	}
	public String getNickname() {
		return nickname;
	}
	public void setNickname(String nickname) {
		this.nickname = nickname;
	}
}
